package xiaobange.common;


/**
 * 用于存储当前登录者的Session
 */
public class BaseConText {
    private static ThreadLocal<Long> threadLocal = new InheritableThreadLocal<>();

    public static void setThreadSessionID(Long ID){
        threadLocal.set(ID);
    }

    public static Long getThreadSessionID(){
        return threadLocal.get();
    }
}
